Move gdk_disable_multidevice to gdkdisplaymanager.[hc].
gdk_progclass = g_strdup (program_class);
}
-
-/**
- * gdk_disable_multidevice:
- *
- * Disables multidevice support in GDK. This call must happen prior
- * to gdk_display_open(), gtk_init() or
- * gtk_init_check() in order to take effect.
- *
- * Most common GTK+ applications won’t ever need to call this. Only
- * applications that do mixed GDK/Xlib calls could want to disable
- * multidevice support if such Xlib code deals with input devices in
- * any way and doesn’t observe the presence of XInput 2.
- *
- * Since: 3.0
- */
-void
-gdk_disable_multidevice (void)
-{
- if (gdk_initialized)
- return;
-
- _gdk_disable_multidevice = TRUE;
-}
#include "gdkdevicemanagerprivate.h"
#include "gdkdisplay.h"
+#include "gdkinternals.h"
#include "gdkintl.h"
return GDK_DEVICE_MANAGER_GET_CLASS (device_manager)->list_devices (device_manager, type);
}
+
+/**
+ * gdk_disable_multidevice:
+ *
+ * Disables multidevice support in GDK. This call must happen prior
+ * to gdk_display_open(), gtk_init() or gtk_init_check() in order to
+ * take effect.
+ *
+ * Most common GTK+ applications won’t ever need to call this. Only
+ * applications that do mixed GDK/Xlib calls could want to disable
+ * multidevice support if such Xlib code deals with input devices in
+ * any way and doesn’t observe the presence of XInput 2.
+ *
+ * Since: 3.0
+ */
+void
+gdk_disable_multidevice (void)
+{
+ _gdk_disable_multidevice = TRUE;
+}
GList * gdk_device_manager_list_devices (GdkDeviceManager *device_manager,
GdkDeviceType type);
+GDK_AVAILABLE_IN_ALL
+void gdk_disable_multidevice (void);
+
+
G_END_DECLS
#endif /* __GDK_DEVICE_MANAGER_H__ */
GDK_AVAILABLE_IN_ALL
void gdk_error_trap_pop_ignored (void);
-GDK_AVAILABLE_IN_ALL
-void gdk_disable_multidevice (void);
-
G_END_DECLS
#endif /* __GDK_MAIN_H__ */